import request from "@/utils/request";
export const getEntryList = (params) => {
  return request({
    url: '/warehousing/entry/page',
    method: 'get',
    params
  })
}

export const addEntry = (data) => {
  return request({
    url: '/warehousing/entry/add',
    method: 'post',
    data
  })
}

export const updateEntry = (data) => {
  return request({
    url: '/warehousing/entry/update',
    method: 'put',
    data
  })
}

export const deleteEntry = (id) => {
  return request({
    url: `/warehousing/entry/delete/${id}`,
    method: 'delete'
  })
}

export const getEntryById = (id) => {
  return request({
    url: `/warehousing/entry/${id}`,
    method: 'get'
  })
}